package com.cqnu.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cqnu.dao.MajorDao;
import com.cqnu.entity.Major;
import com.cqnu.service.IMajorService;

@Service("majorService")
public class MajorServiceImpl extends BaseServiceImpl implements IMajorService {
	@Resource
	private MajorDao majorDao;

	@Override
	public List<Major> find(Map<String, Object> map) {
		return majorDao.find(map);
	}

	@Override
	public Long getTotal(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return majorDao.getTotal(map);
	}

	@Override
	public int update(Major obj) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int add(Major obj) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int delete(Integer id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Major getById(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

}
